Nuclear magnetic resonance methods for extracting information about a fluid in a rock

ABSTRACT

Nuclear magnetic resonance methods for extracting information about a fluid in a rock are described. A system of nuclear spins in the fluid are prepared in a driven equilibrium, and a series of magnetic resonance signals generated from the fluid. The series of magnetic resonance signals is detected and analyzed to extract information about the fluid in the rock.

[0001] This patent application claims priority from U.S. Provisional Patent Application No. 60/220,053 filed Jul. 21, 2000, which is herein incorporated by reference in its entirety.

FIELD OF THE INVENTION

[0002] This invention relates to investigations of rock samples, and more particularly relates to nuclear magnetic resonance (NMR) methods for determining characteristics of a fluid in a rock or earth formation.

BACKGROUND

[0003] NMR has been a common laboratory technique for over forty years and has become an important tool in formation evaluation. General background of NMR well logging can be found, for example, in U.S. Pat. No. 5,023,551 to Kleinberg et al., which is assigned to the same assignee as the present invention and herein incorporated by reference in its entirety.

[0004] NMR relies upon the fact that the nuclei of many chemical elements have angular momentum (“spin”) and a magnetic moment. In an externally applied static magnetic field, the spins of nuclei align themselves along the direction of the static field. This equilibrium situation can be disturbed by a pulse of an oscillating magnetic field (e.g., a RF pulse) that tips the spins away from the static field direction. The angle through which the spins are tipped is given by θ=γB₁t_(p)/2, where γ is the gyromagnetic ratio, B₁ is the linearly polarized oscillating field strength, and t_(p) is the duration of the pulse. Tipping pulses of ninety and one hundred eighty degrees are most common.

[0005] After tipping, two things occur simultaneously. First, the spins precess around the direction of the static field at the Larmor frequency, given by ω₀=γB₀, where B₀ is the strength of the static field and γ is the gyromagnetic ratio. For hydrogen nuclei, γ/2π=4258 Hz/Gauss, so, for example, in a static field of 235 Gauss, the hydrogen spins would precess at a frequency of 1 MHz. Second, the spins return to the equilibrium direction according to a decay time, T₁, which is known as the spin-lattice relaxation time. Because this spin-lattice relaxation occurs along the equilibrium direction, T₁ is also referred to as the longitudinal relaxation time constant.

[0006] Also associated with the spin of molecular nuclei is a second relaxation time, T₂, called the spin-spin relaxation time. At the end of a ninety-degree tipping pulse, all the spins are pointed in a common direction perpendicular, or transverse, to the static field, and they all precess at the Larmor frequency. However, because of small fluctuations in the static field induced by other spins or paramagnetic impurities, the spins precess at slightly different frequencies, and the transverse magnetization dephases with a time constant T₂, which is also referred to as the transverse relaxation time constant.

[0007] A standard technique for measuring T₂, both in the laboratory and in well logging, uses a RF pulse sequence known as the CPMG (Carr-Purcell-Meiboom-Gill) sequence. As is well known, after a wait time that precedes each pulse sequence, a ninety-degree pulse tips the spins into the transverse plane and causes the spins to start precessing. Then, a one hundred eighty-degree pulse is applied that keeps the spins in the measurement plane, but causes the spins, which are dephasing in the transverse plane, to reverse direction and to refocus. By repeatedly reversing the spins using a series of one hundred eighty degree pulses, a series of “spin echoes” appear. The train of echoes is measured and processed to determine the irreversible dephasing time constant, T₂. In well logging applications, the detected spin echoes have been used to extract oilfield parameters such as porosity, pore size distribution, and oil viscosity.

[0008] In theory, other laboratory NMR measurements may be applied in well-logging to extract additional information about the oilfield, but in practice, the nature of well-logging and the borehole environment make implementing some laboratory NMR measurements difficult. For example, inversion recovery is a common laboratory technique for measuring T₁. In an inversion recovery measurement, a one-hundred eighty degree pulse is applied to a system of spins aligned along the static magnetic field in order to reverse the direction of the spins. The system of spins thus perturbed begins to decay toward their equilibrium direction according to T₁. To measure the net magnetization, a ninety-degree pulse is applied to rotate the spins into the transverse plane and so induce a measurable signal. The signal will begin to decay as the spins dephase in the transverse plane, but the initial amplitude of the signal depends on the “recovery time” between the one-hundred eighty degree pulse and the ninety-degree pulse. By repeating this experiment for different recovery times and plotting the initial amplitude of the signal against recovery time, T₁ may be determined. While this technique has been successfully used in the laboratory for several years, inversion recovery is very time consuming, and those of ordinary skill in the art recognize that inversion recovery may be unsuitable for well logging applications.

[0009] Accordingly, there continues to be a general need for improved NMR measurements and, in particular for the oil and gas exploration industries, improved NMR methods that can be used to extract information about rock samples and be used in well-logging applications.

SUMMARY OF INVENTION

[0010] The invention provides a method for extracting information about a fluid that may be contained in rock or within a portion of earth formation surrounding a borehole (as used hereinafter, the term “rock” includes earth, earth formation, and a portion of earth formation). In one embodiment, the method involves applying a sequence of magnetic pulses to a fluid in a rock. The sequence includes a first part that is designed to prepare a system of nuclear spins in the fluid in a driven equilibrium followed by a second part that is designed to generate a series of magnetic resonance signals. The series of magnetic resonance signals is detected and analyzed to extract information about the fluid in the rock.

[0011] Further details and features of the invention will become more readily apparent from the detailed description that follows.

BRIEF DESCRIPTION OF FIGURES

[0012] The invention will be described in more detail below in conjunction with the following Figures, in which:

[0013]FIG. 1 schematically represents a magnetic field pulse sequence that may be used in accordance with the invention;

[0014]FIG. 2 illustrates an inversion recovery-CPMG sequence;

[0015]FIG. 3 illustrates one embodiment of a driven equilibrium-refocusing sequence according to the invention;

[0016]FIGS. 4A and 4B illustrate embodiments of a diffusion editing-CPMG sequence according to the invention;

[0017]FIG. 5 schematically illustrates one embodiment of a nuclear magnetic resonance measurement according to the invention;

[0018]FIG. 6 schematically illustrates an alternative embodiment of a nuclear magnetic resonance measurement according to the invention;

[0019]FIG. 7 contains a two-dimensional map of T₁ versus T₂ of a water-saturated rock sample generated in accordance with the invention;

[0020]FIG. 8 contains a two-dimensional map of T₁ versus T₂ of an oil-saturated rock sample generated in accordance with the invention;

[0021]FIG. 9 contains a two-dimensional map of <T₁/T₂> versus T₂ of a rock sample generated in accordance with the invention; and

[0022]FIG. 10 illustrates a routine that may be used in implementing one embodiment of a method of the invention.

DETAILED DESCRIPTION

[0023]FIG. 1 schematically represents a sequence of magnetic field pulses, such as RF pulses, that may be applied to a system of nuclear spins, such as in a fluid in a rock, in accordance with the invention. The magnetic field pulse sequence 100 includes two parts. A first part 110 prepares a system of nuclear spins in a first state. A second part 120 generates from the system of spins a series of magnetic resonance signals. As shown in FIG. 1, the magnetic field pulse sequence 100 may be repeatedly applied, and the magnetic resonance signals detected and combined to build up signal-to-noise.

[0024] In generating the series of magnetic resonance signals, the first and second parts preferably excite spins at about the same frequency range. For example, a standard CPMG sequence with a series of 180-degree pulses tends to refocus on-resonance spins, namely those spins having a frequency substantially equal to the Larmor frequency, and the observed CPMG signal primarily includes such on-resonance spins. Accordingly, a standard CPMG sequence would be preferably paired with a first part that also primarily excites on-resonance spins. For a first part that affects primarily off resonance spins, such as a constant RF irradiation (discussed below), the second part preferably is designed to excite substantially the same off-resonance spins. A CPMG-like sequence, in which composite pulses designed to refocus the off-resonance spins replace the 180-degree pulses, may be used in such magnetic pulse sequences. Those of skill in the art will be able to design other types of refocusing sequences to refocus spins having different off-resonance frequencies.

[0025] For example, FIG. 2 shows a magnetic field pulse sequence 200 that includes an inversion recovery sequence 210 followed by a CPMG sequence 220. The inversion recovery sequence includes a 180-degree pulse 212 that reverses the direction of the system of spins, followed by a recovery time, τ₁. After the recovery time, which is typically less than T₁, the CPMG sequence 220 is applied, with a 90-degree pulse 222 that rotates the spins into the transverse plane and a series of 180-degree pulses (two of which are indicated by 224) that generates a series of spin echoes (two of which are indicated by 226) whose amplitude depends on T₁ and whose decay depends on the transverse relaxation time constant, T₂: $\begin{matrix} {{{M\left( {\tau_{1},\tau_{2}} \right)} = {M_{0}{\int{\int{{T_{1}}{T_{2}}{f\left( {T_{1},T_{2}} \right)}\left( {1 - {2^{\frac{- \tau_{1}}{T_{1}}}}} \right)^{\frac{- \tau_{2}}{T_{2}}}}}}}},} & (1) \end{matrix}$

[0026] where T₁, T₂ and, τ₁ are as defined above, M₀ is the net magnetization of the spins at thermal equilibrium, τ₂ is the time from the start of the CPMG sequence, and f(T₁,T₂) is the two dimensional density function for T₁ and T₂.

[0027] Another example of a magnetic field pulse sequence that may be used in accordance with the invention includes a first part that is designed to prepare the system of spins in a driven equilibrium state. In general, any magnetic field pulse sequence that repeatedly rotates the net magnetization of the system between the longitudinal and the transverse directions will create a sizable driven equilibrium magnetization. As long as the repeating magnetic field pulse units are short compared to T₁ and T₂, it can be shown that the resulting equilibrium magnetization depends on a function of the ratio, T₁/T₂: $\begin{matrix} {M_{eq} = {{g\left( \frac{T_{1}}{T_{2}} \right)}{M_{0}.}}} & (2) \end{matrix}$

[0028] After the spins are prepared in a driven equilibrium, a second part designed to refocus the spins of the system is applied. The second part generates a series of magnetic resonance signals that depends on both the T₁/T₂ ratio and T₂: $\begin{matrix} {{M_{de}\left( \tau_{2} \right)} = {M_{0}{\int{\int{{T_{2}}{\frac{T_{1}}{T_{2}}}{f\left( {T_{2},\frac{T_{1}}{T_{2}}} \right)}{g\left( \frac{T_{1}}{T_{2}} \right)}{^{\frac{- \tau_{2}}{T_{2}}}.}}}}}} & (3) \end{matrix}$

[0029] T₁, T₂, and τ₂ are as defined previously, and $f\left( {T_{2},\frac{T_{1}}{T_{2}}} \right)$

[0030] is the two dimensional density function for the ratio T₁/T₂ and T₂.

[0031]FIG. 3 illustrates one example of such a driven equilibrium-refocusing sequence. The magnetic field pulse sequence 300 includes a driven equilibrium Fourier transform (DEFT) sequence 310 followed by a CPMG sequence 320. The DEFT sequence 310 shown may be thought of as a repeating block 315 of magnetic field pulses generated according to:

[90_(+x)−t₁−180_(y)−t₂−180_(y)−t₁−90_(−x)]_(i)   (4),

[0032] where t₁ and t₂(≈2t₁) are time spacings between magnetic pulses. Each repeating block is separated by a time, δ₁,and each block has a total width of δ₂. FIG. 3 shows the sequence having two repeating blocks (i=2); however those of skill in the art will recognize that the sequence may have any number of repeating blocks. In many applications, it may be desirable to apply the DEFT sequence for a period of time longer than T₁. A magnetic resonance spin echo 317 appears midway between the two 180_(y)-degree pulses of each block. Over time, the DEFT sequence prepares the system of spins in a driven equilibrium in which the magnetization, in the limit that δ₁<<T₁ and δ₂<<T₂, is given as: $\begin{matrix} {M_{eq}->{\frac{M_{0}}{1 + {\frac{\delta_{2}}{\delta_{1}}\frac{T_{1}}{T_{2}}}}.}} & (5) \end{matrix}$

[0033] The asymptotic expression in equation (5) offers a good approximation for the DEFT driven equilibrium magnetization for all parameters in the range of about T₂/δ₂≳10. After the system of spins is prepared in a driven equilibrium, a CPMG sequence 320 is applied, with a 90-degree pulse 322 followed by a series of 180-degree pulses (two of which are indicated by 324) to generate a series of magnetic resonance spin echoes (two of which are indicated by 326) whose signal can be written as equation (3) above, where the function $g\left( \frac{T_{1}}{T_{2}} \right)$

[0034] is given by: $\begin{matrix} {{{g\left( \frac{T_{1}}{T_{2}} \right)} = \frac{1}{1 + {\frac{\delta_{2}}{\delta_{1}}\frac{T_{1}}{T_{2}}}}},} & (6) \end{matrix}$

[0035] which is most sensitive to changes in T₁/T₂ in the region where (δ₁/δ₂)≈<T₁/T₂>.

[0036] Another example of a driven equilibrium-refocusing magnetic field pulse sequence uses a constant RF field, typically applied for a time greater than T₁, to prepare the system of spins in a driven equilibrium that depends on the T₁/T₂ ratio. The constant RF field typically has a sufficiently high frequency, ω₁, such that ω₁T₂>>1, in which case the equilibrium magnetization along the y- and z-axes, respectively, are given by: $\begin{matrix} {M_{{eq},y} = {\frac{\frac{{\Delta\omega}_{0}}{\omega_{1}}}{\left( \frac{{\Delta\omega}_{0}}{\omega_{1}} \right)^{2} + \frac{T_{1}}{T_{2}}}M_{0}}} & (7) \end{matrix}$

$\begin{matrix} {M_{{eq},z} = {\frac{\left( \frac{{\Delta\omega}_{0}}{\omega_{1}} \right)^{2}}{\left( \frac{{\Delta\omega}_{0}}{\omega_{1}} \right)^{2} + \frac{T_{1}}{T_{2}}}{M_{0}.}}} & (8) \end{matrix}$

[0037] T₁, T₂, ω₁ and M₀ are as defined previously, and Δω₀ is the difference between the frequency of the applied RF field and the Larmor frequency of the spins. From equations (7) and (8), it can be seen that on resonance, i.e., where the frequency of the applied RF field equals the Larmor frequency (Δω₀=0), the equilibrium magnetization vanishes. At Δω₀=±ω₁, the equilibrium magnetization along both the y- and z-axes becomes $\frac{M_{0}}{1 + \left( {T_{1}/T_{2}} \right)},$

[0038] which is equivalent to the DEFT equilibrium magnetization for δ₁=δ₂ (see equation (5) above). In order to measure the T₂ decay of this equilibrium magnetization, a CPMG-like sequence made up of a series of composite pulses designed to refocus off-resonance spins preferably follows the constant RF irradiation. For example, spins having a magnetization around Δω₀=±ω₁ may be effectively refocused using a CPMG-like series of composite pulses of 127_(x)-127_(−x) degrees, generating a series of spin echoes according to equation (3) above, where the function g(T₁/T₂) is given by $\frac{1}{1 + \left( {T_{1}/T_{2}} \right)}.$

[0039] Another type of magnetic field pulse sequence that may be used in accordance with the invention includes a first part that prepares a system of spins with a net magnetization that depends on a diffusion coefficient. A CPMG sequence typically follows the first part and generates a series of magnetic resonance spin echoes that generally decays according to: $\begin{matrix} {{{M\left( {\tau_{1},\tau_{2}} \right)} \approx {\int{\int{{D}{T_{2}}^{\frac{{- {D\gamma}^{2}}g^{2}\tau_{1}^{3}}{6}}^{\frac{- \tau_{2}}{T_{2}}}{f\left( {D,T_{2}} \right)}}}}},} & (9) \end{matrix}$

[0040] where D is the diffusion coefficient, τ₁ is a time associated with the first part, γ is the gyromagnetic ratio, g is the gradient field strength, and τ₂ is the time from the start of the CPMG sequence. For example, according to one embodiment shown in FIG. 4A, the first part 410 includes two spin echoes separated by an elongated echo spacing, t_(E), followed by a standard CPMG sequence of 180-degree pulses 420, and τ₁ ³=t_(E) ³. According to another embodiment shown in FIG. 4B, the first part 430 includes a stimulated echo sequence characterized by a time spacing δ and a stimulated echo appearing at time t_(d), the second part 440 includes a standard CPMG sequence of 180-degree pulses, and τ₁ ³=6t_(d)δ². Diffusion editing magnetic field pulse sequences are described in more detail in U.S. patent application Ser. No. 09/723,803, which is incorporated herein by reference.

[0041]FIG. 5 schematically illustrates one embodiment of a nuclear magnetic resonance measurement according to the invention that involves preparing a system of spins in the fluid with different initial conditions and then measuring the decay of the spins from the different initial conditions using the same refocusing sequence. A first sequence 500 that includes a first part 510 followed by a second part 520 is applied to the fluid to generate a first series of magnetic resonance spin echoes. A second sequence 550 that includes a third part 530 followed by the second part 520 is applied to generate a second series of magnetic resonance spin echoes. The first and second series of magnetic resonance spin echoes are detected and analyzed to extract information about the fluid in the rock. Additional sequences (not shown) may be applied to the system of spins to prepare the system in a plurality of different initial conditions from which additional series of magnetic resonance spin echoes may be generated, detected, and analyzed.

[0042] As shown in FIG. 5, the first sequence 500 may be applied repeatedly before the second sequence 550 is applied to the fluid. The second sequence 550, as shown in FIG. 5, also may be applied repeatedly. The magnetic field pulses of each sequence may be phase-cycled to help reduce noise due to mismatched pulses. Those of ordinary skill in the art will recognize that phase-cycling may be performed by varying the phase of magnetic field pulses within a given sequence or by varying the phase of magnetic field pulses from sequence to sequence.

[0043] The first sequence 500 encompasses the magnetic field pulse sequences described above, and so includes sequences having a first part 510 that prepares the spins initially in a first state with a magnetization that depends on a first parameter, such as T₁, T₁/T₂, D, etc. The second sequence 550 prepares the spins initially in a second state that is different than the first state, and may include the magnetic field pulse sequences described above to prepare the spins with a magnetization that has a different dependence on the first parameter. Alternatively, the third part 530 may include a wait time longer than a longitudinal relaxation time constant, T₁, during which no magnetic field pulses are applied to the fluid. The wait time allows the spins to reach a thermal equilibrium with the static magnetic field, B₀.

[0044] The same refocusing sequence 520 is used in both the first and the second sequences to generate magnetic resonance signals from the different initial conditions. Where the third part includes a wait time and the second part includes a CPMG or CPMG-like sequence, the magnetic resonance signal generated by the second sequence may be expressed generally as a standard CPMG expression, which depends on one parameter, T₂: $\begin{matrix} {{{M_{te}\left( \tau_{2} \right)} \approx {\int{{T_{2}}{f\left( T_{2} \right)}^{\frac{- \tau_{2}}{T_{2}}}}}},} & (10) \end{matrix}$

[0045] The second part 520 is preferably, though not necessarily, applied for substantially the same duration in both the first and the second sequences so as to generate substantially the same number of spin echoes in each the first and second series.

[0046] As shown in FIG. 5, the first sequence 500 may be repeatedly applied and then the second sequence 550 repeatedly applied to the fluid. Alternatively, as shown in FIG. 6, the first and second sequences may be interlaced to allow acquisition of the two magnetic resonance signals during a single pass. The nuclear magnetic resonance measurement shown in FIG. 6 represents an alternative implementation for preparing a system of spins in different states and then measuring the decay of the spins from the different states using the same refocusing sequence, as described above with reference to FIG. 5. A first magnetic field pulse sequence 600 includes a first part 610 to prepare a system of spins in a first state followed by a second part 620 to generate a first series of magnetic spin echoes, and is followed by a second magnetic field pulse sequence 650 that includes a third part 630 to prepare the system in a second state followed by the second part 620 to generate a second series of magnetic spin echoes. The first sequence 600 and the second sequence 650 may be alternated, as shown, and applied repeatedly, with appropriate phase-cycling, to build up signal-to-noise of the first and second series of magnetic spin echoes. Additional sequences may be interlaced with the first and second sequences to prepare the system of spins in a plurality of different initial conditions from which additional series of magnetic resonance spin echoes may be generated, detected, and analyzed.

[0047] The magnetic resonance spin echoes generated from magnetic field pulse sequences 500, 550 or 600, 650 are detected and analyzed to extract information about the fluid. For example, the first sequence may be an inversion recovery-CPMG sequence that prepares the spins with a non-equilibrium magnetization that depends on T₁ and generates a first series of magnetic resonance spin echoes that depends on T₁ and T₂ (see equation (1) above), and the second sequence may be an inversion recovery-CPMG sequence with a different recovery time that prepares the spins with a different non-equilibrium magnetization. Such an inversion recovery-CPMG measurement may be repeated a plurality of times, varying the recovery times, and the plurality of series of magnetic resonance spin echoes analyzed in order to extract a two-dimensional T₁-T₂ distribution, f(T₁,T₂).

[0048]FIGS. 7 and 8 contain a two-dimensional map of T₁ versus T₂ of a water-saturated and an oil-saturated sandstone rock sample, respectively, generated from such a plurality of inversion recovery-CPMG experiments where the recovery time was varied between approximately 100 μs and 10 s. The intensity of the signal at each point on the map provides an indication of the number of spins, and thus the fluid volume, contributing to the signal at that point. T₁ conveys potentially useful information. In a bulk fluid, T₁ typically equals T₂, or T₁/T₂=1. A porous environment, such as found in a rock or an earth formation, may introduce additional relaxation effects that affect the longitudinal and transverse relaxation times differently. For example, in a wetting phase, such as in a water-saturated rock, the spins relax predominantly due to collisions with the grain surface, and the longitudinal and transverse relaxation time are affected differently, typically such that T₁>T₂, which is evident in FIG. 7 (the line 701 indicates T₁=T₂). In a non-wetting phase, however, such as in an oil phase, surface relaxation is negligible, and the T₁ remains approximately equal to T₂, i.e. T₁/T₂≈1. FIG. 8 shows that for longer T₂'s, which sample the larger oil-filled pores, T₂ does approximately equal T₁ (the line 801 indicates T₁=T₂). However, at shorter T₂'s, which sample the smaller pores, a layer of water most likely effectively fills the pores and introduces surface relaxation effects that shorten T₂ relative to T₁. Thus, T₁ contains information that may allow wetting and non-wetting phases within a rock formation, e.g., water versus oil, to be distinguished.

[0049] Some embodiments of the invention may generate a large number of data points. For example, the plurality of inversion recovery-CPMG experiments described above may generate a million or more data points. To analyze NMR data that may be generated by the methods of the invention in real time and without large computer memory requirements, an inversion method has been developed that takes advantage of the tensor product structure of the kernel (see equations (1), (3) and (9) above). For example, the inversion recovery-CPMG data may be expressed with a kernel that is separable into k₁=1−2e^(−τ) ^(₁) ^(/T) ^(₁) and k₂=e^(−τ) ^(₂) ^(/T) ^(₂) (see equation (1)); for the driven equilibrium-refocusing data, the kernel is separable into k₁=g(T₁/T₂) and k₂=e^(−τ) ^(₂) ^(/T) ^(₂) (see equation (3)); and for the diffusion editing-CPMG data, the kernel is separable into k₁=e^(−Dγ) ² ^(g) ² ^(τ) ^(₁) ³ ^(/6) and k₂=e^(−τ) ^(₂) ^(/T) ^(₂) (see equation (9)).

[0050] In implementing the inversion method, each data set is discretized and written in matrix notation:

M _(r) =K ₁ F _(r) K′ ₂ +E _(r), for r=1, . . . , R   (11),

[0051] where R is the number of data sets and, for the discretized parameters x^((i)),i=1 , . . . , N_(x) and y^((i)), i=1 , . . . , N_(y), M_(r) is a matrix containing the r-th data set; matrices K₁ and K₂ contain entries corresponding to continuous kernels k₁ and k₂; matrix F_(r) is the discretized version of a continuous probability density function f_(r)(x,y); and matrix E_(r) represents the noise associated with the data. To solve for F_(r), equation (11) is posed as an optimization problem subject to a non-negativity constraint: $\begin{matrix} {{{\hat{F}}_{r} = {{\underset{F_{r} \geq 0}{\arg \quad \min}{{M_{r} - {K_{1}F_{r}K_{2}^{\prime}}}}^{2}} + {\alpha {F_{r}}^{2}}}},{r = 1},\ldots \quad,R,} & (12) \end{matrix}$

[0052] where

² denotes the Frobenius norm of a matrix. The first term of equation (12) measures the difference between the data and the fit, and the second term summed over all the data sets, r=1 , . . . , R, is a measure of the smoothness of the discretized density function, F_(r). The parameter, α, is a smoothening or regularization parameter that controls the smoothness of the estimated density function F_(r) along each dimension of the data, including along r=1 , . . . , R.

[0053] The inversion method involves first compressing the data M_(r) along each dimension of the kernel using, for example, singular value decomposition of K₁ and K₂ or one of several averaging schemes known in the art, such as window sums, etc. The tensor product structure of the kernel allows for efficient compression of the data, which tends to be highly redundant. Data compression typically reduces the size of the data at least about a thousand-fold without modifying the structure of the problem, and allows for efficient estimation of the discretized density function F_(r). In the lower dimensionality space of the compressed data set {tilde over (M)}_(r), the density function F_(r) may be estimated using one of several known methods, such as least squares fitting, Butler-Reed-Dawson (BRD), etc. For example, in applying the BRD method, the constrained optimization problem for estimating F_(r) (see equation (12) above) is converted into an unconstrained optimization problem for estimating a vector c_(r), r=1 , . . . , R, whose dimension equals the size of the compressed data. The vector c_(r) may be expressed as: $\begin{matrix} {{c_{r} = \frac{{\overset{\sim}{K}{\overset{\sim}{F}}_{r}} - {\overset{\sim}{m}}_{r}}{- \alpha}},} & (13) \end{matrix}$

[0054] where {tilde over (K)} is the tensor product of {tilde over (K)}₁ and {tilde over (K)}₂, which represent the compressed kernels along the first and second dimensions, respectively; and {tilde over (m)}_(r) and {tilde over (F)}_(r) are vectors obtained by lexicographically ordering matrices {tilde over (M)}_(r) and F_(r), respectively. Once c_(r) is estimated, the vector {tilde over (F)}_(r) may be estimated as {tilde over (F)}_(r)=max(0, {tilde over (K)}'c_(r)) , from which the matrix F_(r) may be determined. The optimization is done iteratively until the estimated solution for F_(r) converges within a desired limit.

[0055] As mentioned previously, the smoothening parameter α controls the smoothness of the estimated density function F_(r) along each dimension of the data, including along r=1 , . . . , R. An optimal value of the smoothening parameter α may be determined using one of a number of different strategies known in the art, such as adhoc, BRD, S-curve, cross-validation, Morozov discrepancy principle, minimumbound, predictive mean square estimation, etc. For example, the application of the BRD method to optimizing α for 2- to 3-dimensional data is an extension of the method described in J. P. Butler, et al., “Estimating Solutions of the First Kind Integral Equations with Nonnegative Constraints and Optimal Smoothing”, SIAM J. Numerical Analysis, vol. 18, no. 3, pages 381-397, June 1981.

[0056] This inversion method may be applied to any two- to three-dimensional NMR data that may be expressed generally as:

M _(r)(τ₁,τ₂)=∫∫k ₁(x,τ ₁)k ₂(y,τ ₂)f _(r)(x,y)dxdy+E _(r)(τ₁,τ₂),r=1 , . . . , R   (14),

[0057] where M_(r)(τ₁,τ₂) represents the r-th data set; k₁ and k₂ represent the kernel separated along a first dimension and a second dimension, respectively; τ₁ and τ₂ are a first and a second time, respectively, associated with the nuclear magnetic resonance measurement; x and y are parameters related to the system of spins;f_(r)(x,y) is a joint probability density function between x and y over the R data sets (f_(r)(x,y) also may be thought of as a three-dimensional probability density function of x, y, and an independent, experimentally controlled variable, r); and E_(r)(τ₁,τ₂) represents noise associated with the r-th nuclear magnetic resonance data set. In the case where R=1, then the data are two dimensional, and the method described above correspond to a two-dimensional inversion. This inversion technique has applicability beyond the NMR measurements described herein. As applied to two- and 2.5-dimensional data sets, this inversion technique provides a computationally efficient and robust method of extracting a two-dimensional map of any two parameters that may be transformed out of NMR data, such as T₁, T₂, T₁/T₂ ratio, D, viscosity, saturation, etc. Further details of the inversion method are described in Appendix C of U.S. Provisional Application 60/220,053, which has been incorporated herein by reference in its entirety.

[0058] The inversion recovery-CPMG measurements in conjunction with the inversion method described above is capable of providing a full map of the two-dimensional density function, f(T₁,T₂), with a level of detail that was heretofore not practically achievable, as shown in FIGS. 7 and 8. Other magnetic field pulse sequences and other inversion methods may be used in NMR well-logging applications to provide some of the same information as the inversion recovery-CPMG sequence.

[0059] For example, a driven equilibrium-refocusing sequence as described above prepares the system of spins with an equilibrium magnetization that depends on T₁/T₂ and then generates a first series of magnetic resonance signals that depends on T₁/T₂ and T₂ (see equation (3) above). Analyzing the first series of magnetic resonance signals together with a second series of magnetic resonance signals generated, for example, by applying a wait time followed by the refocusing sequence allows an average T₁/T₂ ratio, i.e., <T₁/T₂>,to be determined. An average T₁/T₂ ratio, averaged over all T₁ values, or even averaged over all spins, provides some indication of whether a sample contains a wetting phase or a non-wetting phase. Thus the main information contained in the full two-dimensional T₁-T₂ density function may be extracted in a single pass experiment that would be suitable for use in well-logging applications.

[0060]FIG. 9 illustrates a two-dimensional map of <T₁/T₂> versus T₂ derived from two sandstone samples, one saturated with water and the other partially saturated with water and oil. These maps, which have been superimposed on one plot, were extracted from data generated by a DEFT-CPMG sequence (as given by expression (4) above and as illustrated in FIG. 3) with δ₁=δ₂=400 μs. By taking a ratio of the DEFT-CPMG data (see equation (3) together with equation (6) above) to the data generated from a standard CPMG (see equation (10) above), the expected value of $g\left( \frac{T_{1}}{T_{2}} \right)$

[0061] was obtained, from which <T₁/T₂> averaged over T₁ for each T₂ was derived. While not as detailed as the T₁-T₂ maps shown in FIGS. 7 and 8, a water phase and oil phase are clearly distinguishable in the <T₁/T₂> versus T₂ map of FIG. 9 for the water-oil saturated sample 901. For example, looking at T₂ components around 200ms and higher of 901, <T₁/T₂> is approximately 1, indicating the presence of oil. At shorter values of T₂, <T₁/T₂> for 901 is clearly greater than 1 and coincides with the <T₁/T₂> versus T₂ map for the water saturated sample 902, indicating that the smaller pores of the water-oil saturated sample corresponding to the shorter T₂ components are filled with water. The intensity of the signal at each point provides an indication of the number of spins and thus the volume of fluid that contribute to the signal at that point.

[0062] The DEFT-CPMG sequence used to generate the <T₁/T₂> versus T₂ maps shown in FIG. 9 was implemented with magnetic field pulses about 1 kHz off-resonance. It has been found that, in homogeneous fields, the DEFT-CPMG signal is sensitive to phase and amplitude mismatches in the pulses, so pulse imperfections affect the observed signal. Various phase cycling schemes may be used to reduce the effects of imperfect pulses. The signal sensitivity also may be reduced using magnetic field pulses that are offset from resonance by Δω≈±(1/δ₁), and by using two 180-degree pulses in the δ₂ period instead of one. Making these modifications to the DEFT-CPMG sequence resulted in good agreement between the signals measured in the laboratory and equations (3) and (6) above.

[0063] In inhomogeneous fields such as is typically found in most well-logging applications, however, some spins are necessarily off-resonance, and, in the fast pulsing limit (i.e., τ₁, τ₂>>T₁, T₂), the DEFT-CPMG signal does not exhibit the same sensitivity to pulse imperfections. However, to fit the observed DEFT-CPMG signals to equation (3) together with equation (6) above, all of the off-resonance behavior and the details of the data acquisition (such as signal bandwidth, etc.) are preferably taken into account in calculating ${g\left( \frac{T_{1}}{T_{2}} \right)}.$

[0064] It should be noted that the constant RF irradiation driven equilibrium, being generated by a single pulse, would not be as sensitive to pulse mismatches and pulse imperfections as the DEFT driven equilibrium, and so is well-suited for use with inhomogeneous fields, such as are found in most well-logging applications.

[0065] The invention may be implemented in well logging using any nuclear magnetic resonance (NMR) well logging apparatus known in the art. Embodiments of the invention may be implemented with NMR well logging devices without the need for hardware modifications. FIG. 10 shows a flow diagram of a routine that can be used in programming a processor in implementing certain embodiments of the invention. The routine may be stored on or provided over a computer or machine readable medium, such as read-only memory (ROM); random access memory (RAM); magnetic disc or tape; a CD-ROM or other optical storage media; electrical, optical, acoustical or other forms of propagated signals; and the like. The processor may be a downhole processor, an uphole processor, or a combination thereof. The processor also may include a remote processor that may be used for implementing some of the data inversion and interpretation parts of the routine.

[0066] Prior to the beginning of the programmed routine and as shown at 1010, a static magnetic field is applied to a region of investigation within an earth formation surrounding a borehole. Theoretically, the earth's magnetic field could be used as the static magnetic field. For most practical purposes, however, this is not preferred. The static magnetic field and field gradient (when desired) typically are applied using a logging tool having a permanent magnet or an array of permanent magnets.

[0067] The programmed routine begins at block 1015, which represents initializing parameters for the magnetic field pulse sequence. The sequence parameters may include, for example, i=1, a recovery time, a wait time, τ₁, τ₂, etc., depending on the pulse sequence to be applied. In some embodiments, phase-cycling instructions also may be introduced into the programmed routine at 1015. Generating a magnetic field pulse sequence in the region of investigation is represented by block 1020. Magnetic resonance signals from the region of investigation are detected in block 1022 and stored.

[0068] Some embodiments of the invention involve repeatedly applying the magnetic field pulse sequence, or involve applying a plurality of magnetic field pulse sequences. A parameter R may be used (set, perhaps, at block 1015) to indicate a total number of magnetic field pulse sequences to be generated and applied. Decision block 1025 represents querying whether a counter, r, equals R. If no, then r is incremented, as represented in block 1026, and, if necessary, sequence parameters, such as recovery time or phase-cycling instructions, are varied as represented in block 1027, before the routine is returned to block 1020 where the next sequence is generated in the region of investigation. If r=R when queried at decision block 1025, then the data acquisition for the measurement is complete and the routine continues on to block 1030 where the data inversion begins. Depending on the particular NMR measurement being performed, more than one counters and more than one iterative loop may be required.

[0069] The data inversion begins at block 1030 by setting the inversion parameters, such as the grid precision to be used in evaluating F, the density distribution; type of kernel; type of optimization, noise, etc. In some embodiments, the kernel and the data are first compressed, and a first objective of the inversion is to extract the density distribution, F, from the data, as shown in blocks 1035 to 1045. Block 1035 represents compressing the kernel along each dimension of the kernel. In cases where the kernel has two dimension, the 2D kernel may be compressed, for example, by first evaluating each 1D kernel with a singular value decomposition and then computing the compressed 2D kernel. Typically, the kernel is compressed one time and applied to each data set, so when the data are compressed at block 1040, the compressed kernel does not need to be calculated again for each data set. The data sets M_(r), r=1 , . . . , R, are compressed along each dimension of the kernel at block 1040. The density distribution F_(r) for r=1 , . . . , R is determined at 1045. In some embodiments, determining F_(r) involves posing the problem in an unconstrained optimization framework in a lower dimensionality space (having a dimension equal to that of the compressed kernel) and iteratively optimizing F_(r) until it converges within a desired limit. When F_(r) has been determined, information about the region of interest, such as T₁, T₁/T₂, T₁-T₂ map, etc., is extracted at block 1050. In some embodiments, information about the region of interest, such as a <T₁/T₂>-T₂ map, may be extracted without having to fully invert for f, as described previously.

[0070] The invention allows information about a system of nuclear spins, such as in a fluid in a rock, to be extracted, either in a laboratory setting or in well-logging applications. Some embodiments may be used to extract two-dimensional maps of parameters of interest, such as T₁ and T₂, T₁/T₂ and T₂, D and T₂, etc., which may prove useful in distinguishing between fluids and/or between different pore environments within a rock. While the invention has been described herein with reference to certain examples and embodiments, it will be evident that various modifications and changes may be made to the embodiments described above without departing from the scope and spirit of the invention as set forth in the claims. 

We claim:
 1. A method of extracting information about a fluid in a rock comprising: a) applying a sequence of magnetic field pulses to the fluid, the sequence comprising a first part designed to prepare a system of nuclear spins in the fluid in a driven equilibrium followed by a second part designed to generate a series of magnetic resonance signals; b) detecting the series of magnetic resonance signals from the fluid; and c) analyzing the series of magnetic resonance signals to extract information about the fluid in the rock.
 2. The method of claim 1, wherein the system of spins in the driven equilibrium has an equilibrium magnetization that depends on a function of T₁/T₂.
 3. The method of claim 1, wherein the first part comprises a DEFT sequence.
 4. The method of claim 1, wherein the first part comprises a constant radio-frequency field.
 5. The method of claim 1, wherein the second part is designed to refocus spins having substantially similar frequencies as spins in the driven equilibrium.
 6. The method of claim 1, wherein the second part comprises a series of 180-degree pulses.
 7. The method of claim 1, wherein the second part comprises a series of composite magnetic field pulses.
 8. The method of claim 1, further comprising repeating steps a) and b) a plurality of times.
 9. The method of claim 8, further comprising phase-cycling the sequence of magnetic field pulses before repeating step a).
 10. The method of claim 1, wherein the sequence further comprises a wait time that follows the second part, the wait time being followed by the second part to generate a second series of magnetic resonance signals.
 11. The method of claim 10, further comprising detecting the second series of magnetic resonance signals from the fluid and analyzing the series of magnetic resonance signals with respect to the second series of magnetic resonance signals to extract information about the fluid in the rock.
 12. The method of claim 10, wherein the wait time is greater than a longitudinal relaxation time associated with the fluid.
 13. The method of claim 10, wherein the second part is applied for substantially similar durations after the first part and after the wait time.
 14. The method of claim 1, wherein the sequence further comprises a third part that follows the second part, the third part being designed to prepare the system in a different driven equilibrium state and being followed by the second part to generate a second series of magnetic resonance signals.
 15. The method of claim 1, wherein analyzing the series of magnetic resonance signals comprises extracting a ratio of T₁/T₂.
 16. The method of claim 15, further comprising using the ratio of T₁/T₂ to distinguish between oil and water in the fluid in the rock.
 17. A method of extracting information about a fluid in a rock comprising: a) preparing a system of nuclear spins in a driven equilibrium and then generating a first series of magnetic resonance signals from the system; b) preparing the system of nuclear spins in a thermal equilibrium and then generating a second series of magnetic resonance signals from the system; c) detecting the first and second series of magnetic resonance signals; and d) analyzing the first and second series of magnetic resonance signals to extract information about the fluid in the rock.
 18. The method of claim 17, wherein preparing the system of nuclear spins in the driven equilibrium comprises applying a sequence of magnetic field pulses to the fluid, the sequence being designed to repeatedly rotate a net magnetization associated with the system between a longitudinal direction and a transverse direction.
 19. The method of claim 18, wherein the sequence of magnetic field pulses comprises a DEFT sequence.
 20. The method of claim 17, wherein preparing the system of nuclear spins in the driven equilibrium comprises applying a constant radio-frequency field to the fluid.
 21. The method of claim 17, wherein preparing the system of nuclear spins in the thermal equilibrium comprises not applying any magnetic field pulses to the fluid for a period of time.
 22. The method of claim 21, wherein the period of time is longer than a longitudinal relaxation time associated with the system of spins.
 23. The method of claim 17, wherein generating the first series of magn etic resonance signal s comprises applying a CPMG sequen ce of magnetic field pulses to the fluid.
 24. The method of claim 23, wherein generating the second series of magnetic resonance signals comprises applying the CPMG sequence to the fluid.
 25. The method of claim 17, wherein generating the first series of magnetic resonance signals comprises applying a CPMG-like sequence of magnetic field pulses to the fluid.
 26. The method of claim 25, wherein the CPMG-like sequence comprises a series of composite pulses.
 27. The method of claim 25, wherein generating the second series of magnetic resonance signals comprises applying the CPMG-like sequence to the fluid.
 28. The method of claim 17, wherein steps a) and b) are repeated a plurality of times.
 29. The method of claim 17, wherein analyzing the first and second series of magnetic resonance signals comprises comparing the first series of magnetic resonance signals to the second series of magnetic resonance signals.
 30. The method of claim 29, wherein analyzing the first and second series of magnetic resonance signals further comprises extracting an average T₁/T₂ ratio.
 31. The method of claim 17, wherein analyzing the first and second series of magnetic resonance signals comprises: i) compressing the first and second series of magnetic resonance signals; and ii) analyzing the compressed data in an unconstrained optimization framework.
 32. The method of claim 31, wherein analyzing the compressed data comprises determining a two-dimensional density function of T₁/T₂ and T₂.
 33. A logging apparatus comprising: a logging tool that is moveable through a borehole; and a processor coupled with the logging tool, the processor being programmed with instructions which, when executed by the processor, cause the logging tool to: a) apply a sequence of magnetic field pulses to a region of investigation of an earth formation surrounding the borehole, the sequence comprising a first part designed to prepare a system of nuclear spins in the region of investigation in a driven equilibrium followed by a second part that generates a series of magnetic resonance spin echoes; b) detect the magnetic resonance signal from the region of investigation; and cause the processor to: c) analyze the magnetic resonance signal to extract information about the fluid in the rock.
 34. A logging apparatus comprising: a logging tool that is moveable through a borehole; and a processor coupled with the logging tool, the processor being programmed with instructions which, when executed by the processor, cause the logging tool to: a) prepare a system of nuclear spins within a region of investigation of an earth formation surrounding the borehole in a driven equilibrium and then generate a first series of magnetic resonance signals from the system; b) prepare the system of nuclear spins in a thermal equilibrium and then generate a second series of magnetic resonance signals from the system; c) detect the first and second series of magnetic resonance signals; and cause the processor to: d) analyze the first and second series of magnetic resonance signals to extract information about the fluid in the rock. 